package com.zwz.eduorder.client;

import com.zwz.commonutils.vo.CourseInfoVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient("service-edu")
public interface EduClient {

    @ApiOperation(value = "根据课程id查询课程详情")
    @GetMapping("/eduservice/coursefront/getCourseInfoById/{courseId}")
    public CourseInfoVo getCourseInfoById(@PathVariable("courseId") String courseId);
}
